display: Don't return NULL in get_primary_monitor()
authorBenjamin Otte <otte@redhat.com>
Sat, 3 Sep 2016 16:33:30 +0000 (18:33 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
commit76d95c312dde61334ee7cf3218a05c3ab485c922
tree60541e39387504d6ccbb0fb2f4af3394f934924f
parentdcb816f99a267227dfe0b4d4b30da8b8c6521816
display: Don't return NULL in get_primary_monitor()

Nobody ever does a NULL check there so all that causes is crashes. So
we better return a non-primary monitor than NULL.

Fixes gdk-wayland always returning NULL.
gdk/gdkdisplay.c